﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    	<asp:GridView ID="gdvProduct" runat="server" AutoGenerateColumns="False" 
			ondatabinding="gdvProduct_DataBinding" ondatabound="gdvProduct_DataBound" 
			onrowcancelingedit="gdvProduct_RowCancelingEdit" 
			onrowediting="gdvProduct_RowEditing" onrowupdating="gdvProduct_RowUpdating" 
			onselectedindexchanged="gdvProduct_SelectedIndexChanged" Width="95%">
			<Columns>
				<asp:BoundField DataField="产品ID" HeaderText="产品ID" />
				<asp:HyperLinkField DataNavigateUrlFields="产品ID" 
					DataNavigateUrlFormatString="ShowProduct.aspx?id={0}" DataTextField="产品名称" 
					HeaderText="产品名称" />
				<asp:BoundField DataField="类别ID" HeaderText="类别ID" Visible="False" />
				<asp:BoundField DataField="类别名称" HeaderText="类别名称" />
				<asp:BoundField DataField="单价" HeaderText="单价" />
				<asp:BoundField DataField="库存量" HeaderText="库存量" />
				<asp:CommandField ShowSelectButton="True" />
				<asp:CommandField ShowEditButton="True" />
			</Columns>
		</asp:GridView>
    
    </div>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
	<p>
		<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
		<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
	</p>
	<p>
		<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
	</p>
    </form>
</body>
</html>
